<template>
  <div>
    <el-container>

      <el-aside style="width: 200px; min-height: 100vh;background-color: #001529;">
        <div style="height: 60px;   color: white; display: flex; align-items: center; justify-content: center;">
          <img src="@/assets/logo1.png" alt="" style="width:40px ; height: 40px;">
          <span style="margin-left: 5px; font: size 20px;">智能问答</span>
        </div>
        <el-menu router background-color="#001529" text-color="rgba(255,255,255,0.65)" active-text-color="#fff" style="border: none;" :default-active="$route.path">
          <el-menu-item index="/">
            <template slot="title">
              <i class="el-icon-house"></i>
              <span>系统首页</span>
            </template>
          </el-menu-item>
          <el-menu-item index="/answers">
            <template slot="title">
              <i class="el-icon-chat-dot-square"></i>
              <span>智能问答</span>
            </template>
          </el-menu-item>
          <el-menu-item>
            <template slot="title">
              <i class="el-icon-tickets"></i>
              <span>知识图谱</span>
            </template>
          </el-menu-item>
          <el-submenu>
            <template slot="title">
              <i class="el-icon-menu"></i>
                <span>信息管理</span>
            </template>
            <el-menu-item>历史查询</el-menu-item>
            <el-menu-item>退出登录</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>

      <el-container>

        <el-header>
          <el-breadcrumb separator-class="el-icon-arrow-right"> 
</el-breadcrumb>
          <div style="flex:1; display: flex; align-items: center;justify-content: flex-end;">
            <el-dropdown placement="bottom">
              <img src="@/assets/logo1.png" alt="" style="width:40px ; height: 40px;">
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>个人信息</el-dropdown-item>
                <el-dropdown-item>退出</el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </div>
        </el-header>

        <el-main>
          主体区域
        </el-main>

    </el-container>
  </el-container>
  </div>
</template>

<script>



export default {
  name: 'HomeView',
}
</script>
<style>
.el-menu--inline .el-menu-item{
  background-color: #000c17 !important;
  padding-left: 50px !important;
}
.el-menu-item:hover i{
  color: #fff !important;
}
.el-menu-item:hover,.el-submenu__title:hover{
  color: #fff !important;
} 
.el-submenu__title:hover i{  
  color: #fff !important;  
}
.el-menu-item.is-active{
  background-color: #1890ff !important;
  border-radius: 5px !important;
  margin: 4px !important; 
}
.el-menu-item{
  height: 40px !important;
  line-height: 40px !important;
  margin: 4px !important;
  }
.el-submenu__title{
  height: 40px !important;
  line-height: 40px !important;
  margin: 4px !important;
  }
  .el-menu--inline{
    background-color: #000c17 !important;
  }
  .el-submenu__icon-arrow{
    margin-top: -5px;
  }
</style>